#!/bin/bash

# win下上传编写\r问题  "default_line_ending": "unix", // 默认是system
#暂时
#sudo docker exec -it php74 composer dump-autoload -o --apcu
#https://blog.csdn.net/zhouyuqi1/article/details/81098650 运行时会生成类，使用这个优化策略会找不到这些新生成的类
#sudo docker exec -it php74 composer dump-autoload -a
sudo git pull && \
sudo docker exec -it php74 cp .env.example .env && \
sudo docker exec -it php74 composer update && \
sudo docker exec -it php74 composer dump-autoload -o  && \
sudo docker exec -it php74 php artisan route:clear && \
sudo docker exec -it php74 php artisan route:cache && \
sudo docker exec -it php74 php artisan config:clear && \
sudo docker exec -it php74 php artisan config:cache